package com.jlkf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jlkf.service.ConfigManagerService;
/**
 * 配置
 * @author DN
 *
 */
@Controller
@RequestMapping("configManager")
public class ConfigManagerController {

	@Autowired
	private ConfigManagerService configManagerService;
	/**
	 * 服务警告  司机取消订单次数设计
	 */
	@RequestMapping("getList")
	public Object getList(){
		return configManagerService.getList();
	}
	
	
	@RequestMapping("addOrUpdate")
	@ResponseBody
	public Object addOrUpdate(@RequestBody String json){
		return configManagerService.addOrUpdate(json);
	}
	
	//城市服务时长设置
	@RequestMapping("getCityRecord")
	public Object getCityRecord(){
		return configManagerService.getCityRecord();
	}
	//保存司机上线时长
	@RequestMapping("saveServiceTime")
	public Object saveServiceTime(String theServiceTimes,String ids){
		return configManagerService.saveServiceTime(theServiceTimes,ids);
	}
	
}
